package com.boot.model;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class Statistics {

    private String key;
    //窗口起始时间
    private long window;
    //成功率
    private double successRate = 0.00;

    //成功数
    private long success;

    //总的调用次数
    private long count;
    //平均耗时
    private double avgTime = 0.00;
    //窗口内总时长
    private int totalTime;

    //总的费用
    private BigDecimal sum = BigDecimal.ZERO;


}
